package com.mezz.bones.im.logic.repository;

import com.baomidou.mybatisplus.extension.service.IService;
import com.mezz.bones.im.logic.domain.entity.ChatUser;

import java.util.Collection;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author mezz
 * @since 2024-12-20
 */
public interface IChatUserRepository extends IService<ChatUser> {

    ChatUser getByUserId(String userId);

    //通过userId集合查找数据
    List<ChatUser> getByUserIds(Collection<String> userIds);

    void removeByUserId(String userId);
}
